package cn.bugstack.domain.credit.service;

import cn.bugstack.domain.credit.model.entity.CreditAccountEntity;
import cn.bugstack.domain.credit.model.entity.TradeEntity;

/**
 * 积分调额接口
 * @author 19872
 */
public interface ICreditAdjustService {

    /**
     * 创建积分调额订单
     * @param tradeEntity 增加额度实体
     * @return 订单号
     */
    String createOrder(TradeEntity tradeEntity);

    /**
     * 查询用户积分账户
     * @param userId 用户ID
     * @return 积分账户实体
     */
    CreditAccountEntity queryUserCreditAccount(String userId);
}
